<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>考核详情</title>
		<meta name="description" content="">
        <meta name="keywords" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <meta name="renderer" content="webkit">
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <link rel="stylesheet" type="text/css" href="/mobile/Public/admin/css/sty.css"/>
        <link rel="stylesheet" type="text/css" href="/mobile/Public/admin/css/reset.css"/>
        <link type="text/css" rel="stylesheet" href="/mobile/Public/mobile/css/style.css" />
        <link href="/mobile/Public/mobile/css/mui.min.css" rel="stylesheet"/>
        <link href="/mobile/Public/mobile/css/sty.css" rel="stylesheet"/>
        <script src="/mobile/Public/admin/js/jquery-1.12.3.min.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript" src="/mobile/Public/mobile/js/mui.min.js"></script>
        <style type="text/css">
        	.xperMess .xmessLast {margin-right: 1vh;}
			.xtableCon .mui-icon-arrowright{width: 10%;}
			.xtableCon .xtableName{width: 40%;}
        </style>
	</head>
	<body id="body" style="background-color: #fff;">
		<header class="mui-bar mui-bar-nav">
	        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	        <h1 class="mui-title">考核详情</h1>
        </header>
        <div class="mui-content">
        	<p class="xperMess">
		        <span class="xmessFirst">总分值：</span><span class="xmessLast"><?php echo ($perfor['p_score']); ?>分</span>
		        <span class="xmessFirst">考核人：</span><span class="xmessLast"><?php echo ($kworker['worker_name']); ?></span>
		        <span class="xmessFirst">最终得分：</span><span class="xmessLast"><?php echo ($score1); ?>分</span>
	        </p>
	        <div class="card_div">
				<span style="width: 40%;padding-left: 4%;text-align: left;">考核类别</span>
				<span style="width: 20%;text-align: center;">分值</span>
				<span style="width: 20%;text-align: center;">最终得分</span>
			</div>
			<div class="xtableCon">
				<?php if(is_array($score)): foreach($score as $key=>$item): ?><div class="line">
						<span class="xtableName"><?php echo ($item["p_name"]); ?></span>
						<span class="xtableScore"><?php echo ($item["p_score"]); ?>分</span>
						<span class="xtableScore"><?php if(isset($item['cha'])) echo $item['cha'].'分'; else echo $item['p_score'].'分'; ?></span>
						<?php if(is_array($item['rulelist'])): foreach($item['rulelist'] as $index=>$rule): if($index == 0): ?><a href="<?php echo U('exam/markdetail_list',array('score_id'=>$score_id,'ru_id'=>$item['p_id'],'ktime'=>$time,'p_id'=>$p_id,'number'=>$index+1,));?>"><span class="mui-icon mui-icon-arrowright"></span></a>
							<?php else: ?>
								<span></span><?php endif; endforeach; endif; ?>
					</div><?php endforeach; endif; ?>
			</div>
			<input type="hidden" name='p_id' value="<?php echo ($p_id); ?>">
			<input type="hidden" name='score_id' value="<?php echo ($score_id); ?>">
	        <!-- <div class="table_list">
			<table border="" cellspacing="" cellpadding="" class="table_table" style="width: 95%;margin-top:0px;">
				<tr class="tr_head">
					<td class="x-kaohe">考核类别</td>
					<td class="x-kaohe">分值</td>
					<td class="x-kaohe">最终得分</td>
					<td class="x-kaohe"></td>
				</tr>
				<?php if(is_array($score)): foreach($score as $key=>$item): ?><tr>
						<td rowspan="<?php echo count($item['rulelist']);?>"><?php echo ($item["p_name"]); ?></td>
						<td rowspan="<?php echo count($item['rulelist']);?>"><?php echo ($item["p_score"]); ?>分</td>
						<td rowspan="<?php echo count($item['rulelist']);?>"><?php if(isset($item['cha'])) echo $item['cha'].'分'; else echo $item['p_score'].'分'; ?></td>
						<?php if(is_array($item['rulelist'])): foreach($item['rulelist'] as $index=>$rule): if($index == 0): ?><td rowspan="<?php echo count($item['rulelist']);?>">
							<a style="color:red;" href="<?php echo U('exam/markdetail_list',array('score_id'=>$score_id,'ru_id'=>$item['p_id'],'ktime'=>$time,'p_id'=>$p_id,'number'=>$index+1,));?>">考核详情</a>
						</td>
					</tr>
						<?php else: ?>
						<tr>
						</tr><?php endif; endforeach; endif; endforeach; endif; ?>
			</table>
		</div> -->
		</div>
		<script>
			$("a").click(function(){
				parent.scrollTo(0,0);
			});				
		</script>
	</body>
</html>